package com.zhai.boot.common;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @package: com.zhai.boot.common
 * @project-name: zhai-boot
 * @description: Service层返回结果常量
 * @author: Created by 翟凤玺
 * @create-datetime: 2018-7-10 13:24
 */
@Getter
@AllArgsConstructor /** 全参构造器 */
public enum ServiceResultConstant {

    SYS_SUCCESS("0", "成功"),
    SYS_ERROR("-1", "系统异常"),
    SYS_NOT_NULL("-2","入参不能为空"),
    SYS_RESUBMIT("-3","请勿重复提交"),
    SYS_LIMIT_STREAM("-4","你的请求过于频繁，请稍后重试"),

    /** demo */
    DEMO_SAVE_FAIL("-20001", "DEMO保存失败"),
    DEMO_FIND_FAIL("-20002", "DEMO查询失败");

    /** 状态码 */
    private String code;
    /** 信息 */
    private String msg;

}
